/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wudtcalc;

import wudtcalc.gaskets.Gasket;
import wudtcalc.gaskets.GasketForce;

/**
 *
 * @author Jadalbert
 */
public class CalcRoad {
    DataContainer dc;
    Gasket g;
    GasketForce gf;
    
    String sDu_;
    
    double Du_, U_, Ucz_;
    double SigR_, P_, S_, Nr_, Nm1_, C_, Nm2_, N_;

    public CalcRoad(DataContainer dc_) {
        dc = dc_;
        g = new Gasket(dc);
        gf = new GasketForce(g);
    }
    
    public void Road() {
        
        sDu_ = g.Du();
        Du_ = g.getDu();
        U_ = g.getU();
        Ucz_ = g.getUcz();
        
        SigR_ = gf.getSigr();
        P_ = gf.getP();
        S_ = gf.getS();
        Nr_ = gf.getNr();   
        Nm1_ = gf.getNm1();
        C_ = gf.getC();
        Nm2_ = gf.getNm2();
        N_ = gf.getN();

    }
}